package com.lx.rpc.framework.register;

import java.util.HashMap;
import java.util.Map;

/**
 * 本地注册
 * @author wcy
 */
public class LocalRegister {

    /**
     * 本地注册表
     */
    public static final Map<String,Class> localRegisterTable = new HashMap();


    public static void register(String interfaceName,Class clazz){
        localRegisterTable.put(interfaceName,clazz);
    }

    /**
     * 获取服务
     * @param interfaceName
     * @return
     */
    public static Class getService(String interfaceName){

        Class aClass = localRegisterTable.get(interfaceName);
        return aClass;
    }
}
